package com.winter.main.service.dept;

import com.github.pagehelper.PageInfo;
import com.winter.main.model.entity.Dept;

import java.util.List;

/**
 * Desc:
 * Author: dushuang
 * Date: Create in 2018/2/28
 */
public interface DeptService {
    /**
     * 查询列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Dept> findAllDept(int pageNum, int pageSize);

    /***
     * 条件查询
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<Dept> findByMap(int pageNum, int pageSize, Dept dept);

    void insertDept(Dept dept);

    boolean deleteDept(Dept dept);

}
